#ifndef CONTEXT_H
#define CONTEXT_H

#include <stdint.h>
#include "task.h"

typedef struct context
{
  uint8_t *stack;
  uint32_t regs[16];
  task_t *task;
} context_t;

extern void context_Init(context_t *context, uint8_t *stack, task_t *task);
extern void context_Enter(context_t *context);
extern void context_Exit(context_t *context);
extern void context_Clean(context_t *context);

#endif /* CONTEXT_H */


